/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xwl
 * Date: 2023-03-30
 * Time: 21:12
 */
import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        //输入
        Scanner scan = new Scanner(System.in);
        //多组输入
        while(scan.hasNextInt()) {
            int n = scan.nextInt();
            //打印上半部分
            for(int i = 0; i < n/2; i++) {
                //打印空格
                for(int j = i; j > 0; j--) {
                    System.out.print(" ");
                }
                System.out.print("*");
                //打印中间空格
                for(int j = n-2-2*i; j > 0; j--) {
                    System.out.print(" ");
                }
                System.out.println("*");
            }
            //打印中间部分
            if(n%2 != 0) {
                for(int i = 0; i < n/2; i++) {
                    System.out.print(" ");
                }
                System.out.println("*");
            }
            //打印下半部分
            for(int i = n/2; i > 0; i--) {
                //打印空格
                for(int j = 0; j < i-1 ; j++) {
                    System.out.print(" ");
                }
                System.out.print("*");
                //打印中间空格
                for(int j = n-2*i; j > 0; j--) {
                    System.out.print(" ");
                }
                System.out.println("*");
            }
        }
    }
}